package com.sh.feign;

import com.alibaba.fastjson.JSONObject;
import com.sh.pojo.domain.PageUserDomain;
import com.sh.pojo.domain.YunQiaoUserDomain;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(url = "${map.url}",name = "UserFeignClient")
public interface UserFeignClient {

    @GetMapping(value = "/v2/Users")
    PageUserDomain listUsers(
            @RequestParam("startIndex") Integer pageNum,
            @RequestParam("count") Integer pageSize);

    @GetMapping(value = "/v2/Users/{userId}")
    YunQiaoUserDomain getUserInfo(
            @PathVariable("userId") String userId);

}
